www.gusucode.com > 威博多用户网上购物商城(生成html) 6 > 威博多用户网上购物商城(生成html) 6.2/威博多用户/addbuysell.asp
<%@ LANGUAGE = "VBScript.Encode" codepage="65001" %> <% '################################################################## '★ web08.net - 威博购物系统 '★ 版权所有: web08.net '★ 程序制作: 威博网络技术公司 '★ email:web08net@hotmail.com '★ Q Q :645095280,475980829 '★ 电话:021-55520018 '★ 相关网址: [产品介绍] http://www.021web.com.cn/gwxt.html '★ [支持论坛] http://bbs.web08.net/ '★ 主页地址: http://www.web08.net/ '★ http://www.021web.com.cn/ '################################################################### %> <html> <head> <title>供求发布</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link href="css/css.css" rel="stylesheet" type="text/css"> <script src="pub/checkip.asp"></script> </head> <body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 class="background"> <!--#include file="include.asp"--> <script> var sflag; function showsx(id) { var tmpvalue; url ="storepub/pub/getbuysellarealist.asp?cid="+id; var xmlDoc=new ActiveXObject("Microsoft.XMLDOM") xmlDoc.async=false; xmlDoc.load(url); tmpvalue=xmlDoc.childNodes(1).childNodes(0).childNodes(0).text; $("getcitylist").innerHTML=xmlDoc.childNodes(1).childNodes(0).childNodes(0).text; } </script> <script language='javascript'> function Loadlogininfo(str1) { var result,url; var j; url = "/pub/getlogo.asp?pid="+str1 var xmlDoc=new ActiveXObject("Microsoft.XMLDOM") xmlDoc.async=false; xmlDoc.load(url); if (str1==1) { document.getElementById("tlogo").innerHTML=xmlDoc.childNodes(1).childNodes(0).childNodes(0).text; } else { document.getElementById("tbottom").innerHTML=xmlDoc.childNodes(1).childNodes(0).childNodes(0).text; } } </script> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td align="center" valign="bottom"><table width="760" height="70" border="0" cellpadding="0" cellspacing="0"> <tr> <td valign="bottom"> <div id="tlogo" name="tlogo"></div> <script>Loadlogininfo("1");</script></td> </tr> </table></td> </tr> <tr> <td height="1" bgcolor="#CCCCCC"></td> </tr> <tr> <td align="center" bgcolor="#f7f7f7"> </td> </tr> <tr> <td height="1" bgcolor="#CCCCCC"></td> </tr> <tr> <td height="5" bgcolor="#DDDDDD"></td> </tr> <tr> <td height="1" bgcolor="#CCCCCC"></td> </tr> </table> <form name="myform" method="post" action="webdata.asp?action=addbuysell"> <DIV align="center" style="height:90PX"><img src="images/login/label4.gif" width="250" height="70" /></DIV> <table width="700" border="0" align="center" cellpadding="0" cellspacing="0" style=" border:#CCCCCC 1PX solid; background:#F5F5F5"> <tr align="right"> <td height="10" colspan="2" align="right" style=" background:#DDDDDD"></td> </tr> <tr align="right"> <td width="20%" height="30" align="right" style="font-weight:bolder; color:#333333">信息标题: </td> <td width="80%" align="left"> <input name="title" type="text" id="title" size="50" maxlength="30" /></td> </tr> <tr align="right"> <td height="30" align="right" style="font-weight:bolder; color:#333333">信息类型: </td> <td align="left"><select name="fid" class="input7"> <% conndb set rss=server.CreateObject("adodb.recordset") sql="select * from web_buyclass where fid=0 order by id asc" rss.open sql,conn do while not rss.eof id=rss("id") %> <% if selectid=rss("id") then %> <option value="<%=rss("fid")%>|<%=rss("level")%>" selected><%=rss("name")%></option> <% else%> <option value="<%=rss("id")%>|<%=rss("level")+1%>" ><%=rss("name")%></option> <% end if%> <% call nolevel_1("web_buyclass",id,1,selectid) %> <% rss.movenext loop %> </select> <%rss.close%></td> </tr> <tr align="right"> <td height="30" align="right" style="font-weight:bolder; color:#333333">信息类型: </td> <td align="left"> <select name="s_class" id="s_class"> <% Tablepara="*" Table="Web_AllType" Condition="where at_codeid=10000 ORDER BY AT_Order asc" call Web_C_Stable("*",Table,Condition) if rs.eof then%> <option value="">暂无分类</option> <%else do while not rs.eof%> <option value="<%=rs("id")%>"><%=rs("AT_Name")%></option> <%rs.movenext loop rs.close end if%> </select></td> </tr> <tr align="center"> <td height="31" align="right" style="font-weight:bolder; color:#333333">信息有效日期: </td> <td height="31" align="left"> <input name="endtime" type="text" id="endtime" style="cursor:hand" onClick="getDateString(this,oCalendarChs)" readonly /></td> </tr> <tr align="right"> <td height="30" align="right" style="font-weight:bolder; color:#333333">商品图片:</td> <td align="left"> <input name="goodpic" type="text" id="goodpic" size="50" maxlength="75"/> <input type="button" name="Submit2" value="上传图片" onClick="javascript:uppic('one','goodpic');"/></td> </tr> <tr align="center"> <td height="31" align="right" style="font-weight:bolder; color:#333333">联系人:</td> <td height="31" align="left"><input name="user" type="text" id="user" maxlength="20"></td> </tr> <tr align="center"> <td height="31" align="right" style="font-weight:bolder; color:#333333">价格:</td> <td height="31" align="left"> <input name="price" type="text" id="price" value="0" maxlength="8" onKeyPress= "return regInput(this,/^\d*\.?\d{0,2}$/,String.fromCharCode(event.keyCode))" onpaste= "return regInput(this,/^\d*\.?\d{0,2}$/,window.clipboardData.getData('Text'))" ondrop="return regInput(this, /^\d*\.?\d{0,2}$/,event.dataTransfer.getData('Text'))"> 0 为面议</td> </tr> <tr align="center"> <td height="31" align="right" style="font-weight:bolder; color:#333333">电子邮件:</td> <td height="31" align="left"> <input name="mail" type="text" id="mail" size="50" maxlength="20"></td> </tr> <tr align="center"> <td height="31" align="right" style="font-weight:bolder; color:#333333">联系电话:</td> <td height="31" align="left"> <input name="quhao1" type="text" size="2" maxlength="4" onKeyPress= "return regInput(this,/^\d*\.?\d{0,2}$/,String.fromCharCode(event.keyCode))" onpaste= "return regInput(this,/^\d*\.?\d{0,2}$/,window.clipboardData.getData('Text'))" ondrop="return regInput(this, /^\d*\.?\d{0,2}$/,event.dataTransfer.getData('Text'))"/> - <input name="call1" type="text" size="15" maxlength="8" onKeyPress= "return regInput(this,/^\d*\.?\d{0,2}$/,String.fromCharCode(event.keyCode))" onpaste= "return regInput(this,/^\d*\.?\d{0,2}$/,window.clipboardData.getData('Text'))" ondrop="return regInput(this, /^\d*\.?\d{0,2}$/,event.dataTransfer.getData('Text'))"/> - <input name="fenji1" type="text" size="3" maxlength="8" onKeyPress= "return regInput(this,/^\d*\.?\d{0,2}$/,String.fromCharCode(event.keyCode))" onpaste= "return regInput(this,/^\d*\.?\d{0,2}$/,window.clipboardData.getData('Text'))" ondrop="return regInput(this, /^\d*\.?\d{0,2}$/,event.dataTransfer.getData('Text'))"/> </font><font color="#425669"> </font><font color="#999999">( 区号 - 座机 - 分机 )</font></td> </tr> <tr align="center"> <td height="31" align="right" style="font-weight:bolder; color:#333333">联系手机:</td> <td height="31" align="left"><input name="phone" type="text" id="phone" size="25" maxlength="11" onKeyPress= "return regInput(this,/^\d*\.?\d{0,2}$/,String.fromCharCode(event.keyCode))" onpaste= "return regInput(this,/^\d*\.?\d{0,2}$/,window.clipboardData.getData('Text'))" ondrop="return regInput(this, /^\d*\.?\d{0,2}$/,event.dataTransfer.getData('Text'))"/> </td> <tr align="center"> <td height="31" align="right" style="font-weight:bolder; color:#333333">邮编:</td> <td height="31" align="left"><input name="Postnumber" type="text" id="Postnumber" size="8" maxlength="6" onKeyPress= "return regInput(this,/^\d*\.?\d{0,2}$/,String.fromCharCode(event.keyCode))" onpaste= "return regInput(this,/^\d*\.?\d{0,2}$/,window.clipboardData.getData('Text'))" ondrop="return regInput(this, /^\d*\.?\d{0,2}$/,event.dataTransfer.getData('Text'))"/> </td> </tr> <tr align="center"> <td height="31" align="right" style="font-weight:bolder; color:#333333">联系地址:</td> <td height="31" align="left"> <span id="getcitylist" name="getcitylist"></span> <script>showsx(<%if selectid<>"" then%><%=selectid%><%else%>0<%end if%>);</script> <input name="address" type="text" size="40%" /></td> </tr> <tr align="center"> <td height="30" align="right" style="font-weight:bolder; color:#333333">信息内容: </td> <td height="30" align="left"> <textarea name="content" cols="63" rows="10"></textarea></td> </tr> <tr align="center"> <td height="30" align="right" style="font-weight:bolder; color:#333333">验证码:</td> <td height="30" align="left"><input name="passcode" type="text" class="input" id="passcode" value="" size="6" maxlength="4"> <script type="text/javascript">document.write("<img align='absmiddle' src='inc/code.asp?",Math.random(),"' style='cursor:pointer;' alt='请输入图片验证码' onClick=\"this.src='inc/code.asp'\">")</script> </td> </tr> <tr align="center"> <td height="30"></td> <td height="50" align="left"><input type="submit" name="Submit3" value=" 确 定 " onClick="return check();"/> <input type="reset" name="Submit32" value=" 取 消 "></td> </tr> </table> </form> <script language="JavaScript" type="text/JavaScript"> function uppic(model,frmname) { window.open("upload/upload.asp?uppath=supplyproduct&ProdId="+model+"&frmname="+frmname,"upload", " width=550, height=280, resizable=no,menubar=1,scrollbars=1") } </script> <script language="javascript" src="js/PopupCalendar.js" ></script> <script language="JavaScript" type="text/JavaScript"> var oCalendarEn=new PopupCalendar("oCalendarEn"); oCalendarEn.Init(); var oCalendarChs=new PopupCalendar("oCalendarChs"); oCalendarChs.weekDaySting=new Array("日","一","二","三","四","五","六"); oCalendarChs.monthSting=new Array("一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"); oCalendarChs.oBtnTodayTitle="今天"; oCalendarChs.oBtnCancelTitle="取消"; oCalendarChs.Init(); </script> <script language=javascript> <!-- function check() { if(document.myform.title.value=="") { alert('信息标题不能为空!'); myform.title.focus(); return false; } if(document.myform.content.value=="") { document.myform.content.focus(); alert("信息内容不能为空!!"); return false; } if(document.myform.endtime.value=="") { document.myform.endtime.focus(); alert("信息有效期不能为空!!"); return false; } if(document.myform.content.value.length>3000) { document.myform.content.focus(); alert("信息内容不能超过3000字符!"); return false;} } function regInput(obj, reg, inputStr) { var docSel = document.selection.createRange() if (docSel.parentElement().tagName != "INPUT") return false oSel = docSel.duplicate() oSel.text = "" var srcRange = obj.createTextRange() oSel.setEndPoint("StartToStart", srcRange) var str = oSel.text + inputStr + srcRange.text.substr(oSel.text.length) return reg.test(str) } --> </script> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="1" bgcolor="#CCCCCC"></td> </tr> <tr> <td bgcolor="#f7f7f7"> </td> </tr> <tr> <td height="1" bgcolor="#CCCCCC"></td> </tr> <tr> <td><table width="760" border="0" align="center" cellpadding="5" cellspacing="0"> <tr> <td align="center"><div id="tbottom" name="tbottom"></div> <script>Loadlogininfo("2");</script></td> </tr> </table></td> </tr> </table> <script language="JavaScript"> <!-- var request=window.location.search; function dosubmit(){ form1.action="checklogin.asp"+request form1.submit(); } --> </script> </body> </html>